package com.miaoji.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miaoji.domain.po.ClothCategory;
import org.apache.ibatis.annotations.Update;

import java.util.Locale;

public interface CategoryMapper extends BaseMapper<ClothCategory> {
    @Update("update cloth_category set category_one=#{categoryOne},category_two=#{categoryTwo} where cloth_id=#{clothId}")
      Integer updateByClothId(ClothCategory clothCategory);

    @Update("update cloth_category set category_tre=#{categoryTre} where cloth_id=#{clothId}")
    Integer updateCategoryTre(int clothId,String categoryTre);
}
